package com.elder.business.mapper;

import java.util.List;
import com.elder.business.domain.ElderlyApartmentVisitRecords;
import org.apache.ibatis.annotations.Param;

/**
 * 探访记录Mapper接口
 * 
 * @author zyk
 * @date 2023-11-26
 */
public interface ElderlyApartmentVisitRecordsMapper 
{
    /**
     * 查询探访记录
     * 
     * @param id 探访记录主键
     * @return 探访记录
     */
    public ElderlyApartmentVisitRecords selectElderlyApartmentVisitRecordsById(Long id);

    /**
     * 查询探访记录列表
     *
     * @return 探访记录集合
     */
    public List<ElderlyApartmentVisitRecords> selectElderlyApartmentVisitRecordsList(@Param("visitorName") String visitorName,@Param("elderName") String elderName, @Param("startTime") Long startTime, @Param("endTime") Long endTime);

    /**
     * 新增探访记录
     * 
     * @param elderlyApartmentVisitRecords 探访记录
     * @return 结果
     */
    public int insertElderlyApartmentVisitRecords(ElderlyApartmentVisitRecords elderlyApartmentVisitRecords);

    /**
     * 修改探访记录
     * 
     * @param elderlyApartmentVisitRecords 探访记录
     * @return 结果
     */
    public int updateElderlyApartmentVisitRecords(ElderlyApartmentVisitRecords elderlyApartmentVisitRecords);

    /**
     * 删除探访记录
     * 
     * @param id 探访记录主键
     * @return 结果
     */
    public int deleteElderlyApartmentVisitRecordsById(Long id);

    /**
     * 批量删除探访记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteElderlyApartmentVisitRecordsByIds(Long[] ids);

    List<ElderlyApartmentVisitRecords> selectApartmentVisitRecordsList(ElderlyApartmentVisitRecords elderlyApartmentVisitRecords);
}
